:root {
    --primary-color: #2c3e50;     /* 主色调 */
    --secondary-color: #3498db;   /* 辅助色 */
    --success-color: #27ae60;     /* 成功色 */
    --warning-color: #f1c40f;     /* 警告色 */
    --danger-color: #e74c3c;      /* 危险色 */
    --light-bg: #f8f9fa;          /* 浅色背景 */
    --dark-text: #2c3e50;         /* 深色文本 */
    --border-color: #dee2e6;      /* 边框颜色 */
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/*头部图标*/
.content-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.profile-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.profile-btn:hover {
    background: #e9ecef;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 6px;
    padding: 0.5rem;
    min-width: 150px;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark-text);
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
}

/* 下拉菜单样式 */
.profile-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 160px;
    display: none; /* 默认隐藏 */
    z-index: 1000;
}

.dropdown-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

/* 箭头动画 */
.fa-rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 个人信息列表 */
.info-list dt {
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 1rem;
}

.info-list dd {
    margin-left: 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* 没有把信息填完Toast基础样式 */
.custom-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
    font-size: 14px;
}